﻿@model IQueryable<YTCMS.Domain.Entities.guide>
@using YTCMS.Core;

<div class="row">
    @foreach (var item in Model)
    {
        <div class="span4">
            <div class="img">
                <a href="/Guide/details?id=@item.Id"><img src="@item.Images.Replace("_120x120","")" /> </a>
            </div>
            <div class="title">
                <div class="area">
                    <img src="/Content/ytcms/img/area.png" />
                    <a href="/Guide/details?id=@item.Id">
                        <span>
                            @item.Title
                        </span>
                    </a>
                </div>
                <div class="location">
                    <span class="users span4">
                        @item.User
                    </span>
                    <span class="time span4">
                        @item.PushTime.ToString("yyyy-MM-dd")
                    </span>
                    <span class="push span4">
                        <img src="/Content/ytcms/img/eye.png" />
                        @item.Tags
                    </span>
                </div>
            </div>
        </div>
    }
    
</div>
@*<div class="pagination pagination-centered">
    <ul>
        <li><a href="#"><</a></li>
        <li><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li class="active"><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">></a></li>
    </ul>
</div>*@
@Html.AjaxPager2((int)ViewBag.PageSize, (int)ViewBag.TotalCount)